home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000293_neal@ctd.comsat.com_Wed Feb 9 05:09:00 1994.msg < prev    next >
Internet Message Format  |  1994-10-11  |  3KB

  1. Received: from neal.ctd.comsat.com by cs.umb.edu with SMTP id AA21919
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Wed, 9 Feb 1994 10:09:08 -0500
  3. Received: by neal.ctd.comsat.com (Smail3.1.28.1 #29)
  4.     id m0pUGXL-0002fOC; Wed, 9 Feb 94 10:09 EST
  5. Message-Id: <m0pUGXL-0002fOC@neal.ctd.comsat.com>
  6. Date: Wed, 9 Feb 94 10:09 EST
  7. From: neal@ctd.comsat.com (Neal Becker)
  8. To: kb@cs.umb.edu
  9. Cc: tex-k@cs.umb.edu
  10. Subject: Re:  Engine specific font paths
  11. In-Reply-To: <199402091232.AA03727@terminus.cs.umb.edu>
  12. References: <199402091232.AA03727@terminus.cs.umb.edu>
  13.  
  14. Here is an example of a config file for eps:
  15.  
  16. ---------------------------
  17. "Panasonic KX-P1080" | EpsonMXFX {
  18.     engine = "EpsonMXFX"
  19.     vpins =  8
  20.     dpih = 240
  21.     dpiv = 216
  22.     graphicsmode = "\eZ"
  23.     vskip = 216
  24.     vinc = 1
  25.     hinc = 2    # 2 passes should look better
  26.     vinterleave = 3 # pin spacing is 1/72 inch = 3/216
  27.     resetstring = "\e@"
  28.     UseEscF0
  29.     minskipspaces = 5
  30.     vspread = 1
  31.     vaddvstr = "\eJ%c"
  32. }
  33.  
  34. EpsonMXFX-low {
  35.     engine = epsonlo
  36.     vpins = 4
  37.     dpih = 120
  38.     dpiv = 108
  39.     graphicsmode = \e L
  40.     vskip = 216
  41.     vinc = 1
  42.     hinc = 1
  43.     vinterleave = 3
  44.     resetstring = "\e@"
  45.     UseEscF0
  46.     minskipspaces = 5
  47.     vspread = 2
  48.     vaddvstr = "\eJ%c"
  49. }
  50.  
  51. NEC {
  52.     engine = NEC
  53.     vpins =  24
  54.     dpih = 180
  55.     dpiv = 180
  56.     vskip = 180
  57.     graphicsmode = "\e*\x27"
  58.     vskip = 180
  59.     vinterleave = 1
  60.     vaddvstr = "\eJ%c"
  61. }
  62.  
  63. NEChi {
  64.     engine = NEChi
  65.     vpins =  24
  66.     dpih = 360
  67.     dpiv = 360
  68.     graphicsmode = "\e*\x28"
  69.     vskip = 360
  70.     vinterleave = 2
  71.     vaddvstr = \x1c\x33 "%c" \x0a
  72. }
  73. --------------------------------------------    
  74.  
  75. To find fonts for a particular 'engine' we consult the 'fontdesc' file
  76. (this is standard part of mctex lib)
  77.  
  78. --------------------------------------------
  79. font    pk    EpsonMXFX    3    /usr/TeX/lib/tex/fonts/EpsonMXFX/%f.%mpk
  80. font    pk    epsonlo    3    /usr/TeX/lib/tex/fonts/EpsonMXFX-lo/%f.%mpk
  81. --------------------------------------------
  82.  
  83. Now to make fonts with MakeTeXPK I modify the MakeTeXPK.  In many
  84. implementations of MakeTeXPK there is a 6th optional arg specifying
  85. what subdir the fonts should go into.  I modify this so that this can
  86. be either a subdir or an absolute path.  The idea is that I already
  87. had to specify the font path to the driver in fontdesc - it's crazy to
  88. require the user to specify it again in MakeTeXPK.
  89.  
  90. This implementation is similar (in principle) to dvips - I specify
  91. device-dependent info in a config file.  I use a single config file
  92. for all printers as opposed to seperate files for each - but that's
  93. not important.
  94.  
  95. What *is* important is that having already needed to specify the font
  96. path in a device specific config file I shouldn't need to ever specify
  97. it again anywhere else.  So I recommend that drivers call MakeTeXPK
  98. passing this info.
  99.  
  100. Here is the mod I make to MakeTeXPK to use the optional 6th arg:
  101.  
  102. ------------------------------
  103. if test "$6" != ""
  104. then
  105.   case "$6" in
  106.     /*) DESTDIR="$6" ;;
  107.      *) DESTDIR=$DESTDIR"/$6"
  108.   esac
  109.    if test ! -d $DESTDIR
  110.    then
  111.       mkdir $DESTDIR
  112.    fi
  113. else
  114.   DESTDIR=$DESTDIR"/$MODE"
  115. fi